package org.example.work1022.w2;

import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class Printer {
    @Resource(name = "grey")
    private Ink ink;
    @Resource(name = "a6")
    private Paper paper;
    public void print(){
        System.out.println(ink.ink()+"打印机开始打印");
        System.out.println("打印机使用"+paper.paper());
    }
}
